package main
import "fmt"
type Books struct{
	title string
	author string
	price float64
	book_id int
}

func main(){
    // 1.初始化方法1
	var book_math Books = Books{
		"数学",
		"Gaussian",
		12.3,
		1,
	}
	fmt.Println(book_math)
	// {数学 小明 12.3 1}

	// 2.通过key关键字 初始化部分字段
	var book_physics Books = Books{
		title: "物理",
		author: "Nudun",
	}
	fmt.Println(book_physics)
	// {物理 Nudun 0 0}
}